package tech.aistar.service.impl.registerAndLoginService;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.entity.authordis.UserTable;
import tech.aistar.mapper.userLoginAndRegister.UserLogin;
import tech.aistar.service.registerAndLogin.IUserLoginService;


/**
 * Created by lenovo on 2019/9/27.
 */
@Service
@Transactional
public class UserLoginServiceImpl implements IUserLoginService {
    @Autowired
    private UserLogin userLogin;


    @Override
    public UserTable findByPhone(@Param("phone") String phone, @Param("password") String password) {
        UserTable user = userLogin.findByPhone(phone,password);


        return user;
    }


}

